import {GET, POST} from "@/api/api.ts";

const indexUrl = {
	'login':'/auth/login',
	'getUserInfo':'/system/user/info',
	'getCaptcha':'/auth/captcha/get',
	'captchaCheck':'/auth/captcha/check',
}
export default indexUrl
export const Login = (params:any)=>{
	return POST(indexUrl.login,params)
}
export const GetUserInfo = () =>{
	return GET(indexUrl.getUserInfo)
}
// 获取验证图片  以及token
export const getCaptcha = (params)=>{
	// return axios({
	// 	url: '/auth/captcha/get',
	// 	method: 'post',
	// 	data
	// })
	return POST(indexUrl.getCaptcha,params)
}

// 滑动或者点选验证
export const captchaCheck = (params) =>{
	// return axios({
	// 	url: '/auth/captcha/check',
	// 	method: 'post',
	// 	data
	// })
	return POST(indexUrl.captchaCheck,params)
}
